import Vue from 'vue'
import App from './App.vue'
import router from './router'
// 导入全局样式
import "./assets/css/global.css"
// 导入组件
import "./plugins/element.js"

import axios from "axios"

// 配置请求根路径
axios.defaults.baseURL="http://timemeetyou.com:8889/api/private/v1/"
axios.interceptors.request.use(config=>{
  config.headers.Authorization = window.sessionStorage.getItem('token')
  return config
})
Vue.prototype.$http=axios
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
